package com.yansl.http.utils;

import java.lang.reflect.Method;
import java.util.Objects;

/**
 * @description: 注解工具
 * @author: yansl.cn
 * @create: 2022-12-25 15:10
 */
public class AnnotitionUtil {

    /**
     * 判断是否
     * 
     * @param method
     * @param annotationClass
     * @return
     */
    public static boolean isAnnotition(Method method, Class annotationClass) {
        return Objects.nonNull(method.getAnnotation(annotationClass));
    }

}
